INCLUDE(${CMAKE_SOURCE_DIR}/IJMacros.txt)

cmake_minimum_required(VERSION 2.6)

PROJECT(TV)
ENABLE_TESTING()
INCLUDE(Dart)

SET(Required_Packages
ITK
)

FOREACH(Package ${Required_Packages})
  LOADPACKAGE(${Package})
ENDFOREACH(Package)

SET(Libraries
ITKCommon
ITKIO
)

SET(CurrentExe "TVTest")
ADD_EXECUTABLE(${CurrentExe} itkTotalVariationDenoisingImageFilterTest.cxx) 
TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
SET(CurrentExe "TVExample")
ADD_EXECUTABLE(${CurrentExe} TotalVariationDenoisingImageFilter.cxx) 
TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries})
                              
ADD_TEST(DenoiseImage TVTest ${CMAKE_SOURCE_DIR}/dwi.nrrd)

